﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataModels;
using System.Data.Objects;

namespace Common
{
    public abstract class DataAccessBase
    {
        private static readonly JobsEntities _context = new JobsEntities();

        protected JobsEntities Context
        {
            get
            {
                return _context;
            }
        }

        protected ObjectSet<Security> SecuritySet
        {
            get
            {
                return Context.Security;
            }
        }

        protected ObjectSet<Jobs> JobsSet
        {
            get
            {
                return Context.Jobs;
            }
        }
    }
}
